www.gusucode.com > VC++ 仿SQLServer企业管理器的SQL客户端工具-源码程序 > VC++ 仿SQLServer企业管理器的SQL客户端工具-源码程序/code/TableComboBox.cpp
// TableComboBox.cpp : implementation file // Download by http://www.NewXing.com #include "stdafx.h" #include "frontTool.h" #include "TableComboBox.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTableComboBox CTableComboBox::CTableComboBox() { } CTableComboBox::~CTableComboBox() { } void CTableComboBox::ListTable(CFTDB *pDB) { if(pDB->ListAllTable("'TABLE'")) { ResetContent(); for(int i=0;i<pDB->m_arrTableName.GetUpperBound()+1;i++) { AddString(pDB->m_arrTableName.GetAt(i)); } } } BEGIN_MESSAGE_MAP(CTableComboBox, CComboBox) //{{AFX_MSG_MAP(CTableComboBox) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTableComboBox message handlers